extends ./layout.jade
block content
    div(style="margin:10px 20px;")
        table
            thead
                tr
                    th(rowspan="2") 监测类型
                    th(rowspan="2") 监测位置
                    th(colspan="4") 阶段变形
                    th(colspan="4") 累计变形
                tr
                    th 阶段变形(mm)
                    th 阶段速率(mm/day)
                    th 阶段变形最大点
                    th 阶段观测次数
                    th 累计变形(mm)
                    th 累计速率(mm/day)
                    th 累计变形最大点
                    th 累计观测次数
            tbody
                - for(var i=0; i < data.length; i++)
                    - for(var j = 0; j < data[i].locationPoints.length; j++)
                        - var locationPoints = data[i].locationPoints[j]
                        if(data[i].monitorType === '收敛')
                            tr
                                if(j===0)
                                    td(rowspan=data[i].locationPoints.length*2) #{data[i].monitorType}
                                td(rowspan="2") #{locationPoints.location}
                                td(rowspan="2") #{locationPoints.hasValue?locationPoints.change.maxPointThisTime.value:'无数据'}
                                td(rowspan="2") #{locationPoints.hasValue?locationPoints.change.maxPointThisTime.speed:'无数据'}
                                td(rowspan="2") #{locationPoints.hasValue?locationPoints.change.maxPointThisTime.name:'无数据'}
                                td(rowspan="2") #{locationPoints.change.thisPeriodNoSum}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointAllTheTime.value:'无数据'}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointAllTheTime.speed:'无数据'}
                                if locationPoints.hasValue
                                    td #{locationPoints.change.maxPointAllTheTime.name+"(累计)"}
                                else
                                    td 无数据
                                td(rowspan="2") #{locationPoints.change.allPeriodNoSum}
                            tr
                                td #{locationPoints.hasValue?locationPoints.change.maxDesignPointAllTheTime.value:'无数据'}
                                td /
                                if locationPoints.hasValue
                                    td #{locationPoints.change.maxDesignPointAllTheTime.name+"(设计)"}
                                else
                                    td 无数据
                        else
                            tr
                                if(j===0)
                                    td(rowspan=data[i].locationPoints.length) #{data[i].monitorType}
                                td #{locationPoints.location}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointThisTime.value:'无数据'}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointThisTime.speed:'无数据'}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointThisTime.name:'无数据'}
                                td #{locationPoints.change.thisPeriodNoSum}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointAllTheTime.value:'无数据'}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointAllTheTime.speed:'无数据'}
                                td #{locationPoints.hasValue?locationPoints.change.maxPointAllTheTime.name:'无数据'}
                                td #{locationPoints.change.allPeriodNoSum}